<!--
 * @Descripttion: 整体布局页面
 * @version: 
 * @Author: sueRimn
 * @Date: 2021-12-21 15:40:14
 * @LastEditors: sueRimn
 * @LastEditTime: 2022-09-05 16:17:01
-->
<template>
  <el-container style="height: 100%">
    <el-header><Header></Header></el-header>
    <el-container>
      <el-aside width="240px"><AsideMenu></AsideMenu></el-aside>
      <el-main
        ><el-container
          ><el-header
            style="
              height: 35px;
              padding-top: 3px;
              border-bottom: 1px solid #e6e6e6;
              padding-left: 10px;
            "
            ><TagNav></TagNav
          ></el-header>
          <el-main>
            <transition
              name="portal-classes-transition"
              enter-active-class="animated fadeInDown"
            >
              <router-view ref="route"> </router-view>
            </transition>
          </el-main> </el-container
      ></el-main>
    </el-container>
  </el-container>
</template>
<script>
import Header from "@/layout/Header.vue";
import AsideMenu from "@/layout/AsideMenu.vue";
import TagNav from "@/layout/TagNav.vue";
import { mapState } from "vuex";
export default {
  name: "index",
  components: {
    Header,
    AsideMenu,
    TagNav,
  },
  computed: {
    ...mapState({
      userInfo: (state) => state.user.userInfo,
      menuList: (state) => state.menu.menuList,
    }),
  },
  data() {
    return {};
  },
  mounted() {
    console.log("index.vue userInfo ", this.userInfo);
  },
};
</script>
<style lang="scss" scoped>
.el-header {
  padding: 0px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
aside {
  background: #eef1f6;
  /* margin-bottom: 20px; */
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.el-main {
  display: block;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -ms-flex-preferred-size: auto;
  flex-basis: auto;
  overflow: auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0px;
}
</style>
